//
//  MeDetailViewController.m
//  SinaWebo
//
//  Created by wwj on 16/2/16.
//  Copyright © 2016年 亦心. All rights reserved.
//

#import "MeDetailViewController.h"
#import "FirstTableViewController.h"
#import "SecondTableViewController.h"
#import "ThreeTableViewController.h"
#import "UIBarButtonItem+Extension.h"

@interface MeDetailViewController ()

@end

@implementation MeDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.title = @"亦心";
    
    self.personCardImage = [UIImage imageNamed:@"img2"];
    self.personIconImage = [UIImage imageNamed:@"img2"];
    FirstTableViewController *firstVC = [[FirstTableViewController alloc] init];
    firstVC.title = @"主页";
    [self addChildViewController:firstVC];
    
    SecondTableViewController *secondVC = [[SecondTableViewController alloc] init];
    secondVC.title = @"微博";
    [self addChildViewController:secondVC];
    
    ThreeTableViewController *threeVC = [[ThreeTableViewController alloc] init];
    threeVC.title = @"相册";
    [self addChildViewController:threeVC];
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTitle:@"返回" color:[UIColor whiteColor] icon:@"navigationbar_back_light" highIcon:@"navigationbar_back_withtext_highlighted" target:self action:@selector(onClickClose)];
    
}

- (void)onClickClose{
    [self.navigationController popViewControllerAnimated:YES];
}




@end
